package com.javasm.crm.service.aftersale;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.javasm.crm.domin.criteria.aftesale.RefacOutApplyCriteria;
import com.javasm.crm.domin.entity.aftersale.RefacOutApply;
import com.javasm.crm.domin.entity.aftersale.RefacOutGoods;
import com.javasm.crm.domin.vo.aftersale.RefacOutApplyVO;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author lirui
 * @since 2021-07-11
 */
public interface IRefacOutApplyService extends IService<RefacOutApply> {

    /**
     * 获取出库申请的分页信息
     *
     * @param criteria 条件查询构造器
     * @return 查询结果
     */
    Page<RefacOutApply> getPage(RefacOutApplyCriteria criteria);

    boolean saveNewOutApply(RefacOutApplyVO refacOutApplyVO);

    boolean alterOutApply(RefacOutApplyVO refacOutApplyVO);

    boolean batchDelApply(List<Serializable> idList);

    boolean approveApply(RefacOutApply refacOutApply, String approver);
}
